<?php
include '../connect/common_start.php';

if (isset($_REQUEST['mem_id'])) {
	$mem_id=$_REQUEST['mem_id'];
	if (isset($_REQUEST['id_post'])) {
		$id_post=$_REQUEST['id_post'];

		$sql="UPDATE `post` SET `status`='2' WHERE (`id`='$id_post' AND `id_store`='$mem_id' AND `type`='2')";
		$result=mysql_query($sql);
		$rs= mysql_affected_rows();
		echo $rs;
	}
}


include '../connect/common_end.php';
?>